/**
 * Created by wangkui on 2015/11/25.
 */
var apitoken = require('./apitoken.js');

module.exports = {
    sessionstore:{
        host:"bpsredis.redis.cache.chinacloudapi.cn",
        port:"6379",
        pass:"or5Vu+obpj2cEAI0oE6sGixlnz9lRFefK3u2mKggbtw=",
        db:10
    },
    cachestore:{
        port: 6379,
        host: 'bpsredis.redis.cache.chinacloudapi.cn',
        password: 'or5Vu+obpj2cEAI0oE6sGixlnz9lRFefK3u2mKggbtw=',
        database: 11
    },
    secrets: {
        session: 'bigpixel'
    },
    userRoles: ['guest', 'user', 'admin'],
    api:{
        rootpath:     'http://srvtest.bigpixel.cn',
        //rootpath:     'http://localhost:91',
        token:apitoken.getcachedToken
    },
    qq:{
        clientID:     '101203390',
        clientSecret: '551cfbd0c7dcdfe23e04f1d48a0f7794',
        callbackURL:   '/auth/qq/callback'
    },
    weibo:{
        clientID:     '2641769870',
        clientSecret: 'd9dab61da20f5d2d6ed9aa63abbdf183',
        callbackURL:   '/auth/weibo/callback'
    },
    wechat:{
        clientID:     'wxead92ff6c72acddf',
        clientSecret: 'd4624c36b6795d1d99dcf0547af5443d',
        callbackURL:   '/auth/wechat/callback'
    },
    facebook:{
        clientID:     'xx',
        clientSecret: 'xx',
        callbackURL:   '/auth/facebook/callback'
    },
    twitter:{
        clientID:     'xx',
        clientSecret: 'xx',
        callbackURL:   '/auth/twitter/callback'
    }
}